bitkeeper revision 1.1057 (40ee8584myg8XmLDN-LhS0RxAdp2Pg)
authormjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Fri, 9 Jul 2004 11:46:12 +0000 (11:46 +0000)
committermjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Fri, 9 Jul 2004 11:46:12 +0000 (11:46 +0000)
Fix getopt to return a value.

tools/python/xen/xm/opts.py

index 325698875d8f0268e52a61157766c818c15a2554..9bae32e0822cb31e2ecdc3064e9b3643a5f274c3 100644 (file)
@@ -242,7 +242,7 @@ class Opts:
         """Get an option value.
         An option value can also be got using 'opts.vals.name'.
         """
-        getattr(self.vals, name)
+        return getattr(self.vals, name)
 
     def specified(self, name):
         """Test if an option has been specified.